<!DOCTYPE html>
<html>
<head>
    <title>直播室信息 </title>
        <#include "/header.html">
        <script src="${request.contextPath}/statics/plugins/jstemplate/template.js"></script>
</head>
<body>
<div id="webpage" v-cloak>
    <div v-show="appearance.showList">
        <div v-show="appearance.showControllBar" class="grid-btn">
            <span v-show="appearance.showSearchForm">
                <div class="form-group col-sm-2">
                    <input type="text" class="form-control" v-model="q._keyword" @keyup.enter="query" placeholder="关键字">
                </div>
                <a class="btn btn-default" @click="query">查询</a>
            </span>

			<#if shiro.hasPermission("live:liveroom:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("live:liveroom:update")>
            <a class="btn btn-primary" @click="update(null,$event)"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("live:liveroom:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!appearance.showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">当前场次标识</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="liveRoom.liveRoundId" placeholder="当前场次标识"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">是否推荐 数字越高，推荐级别越高</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="liveRoom.rank" placeholder="是否推荐 数字越高，推荐级别越高"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">直播室标题</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="liveRoom.title" placeholder="直播室标题"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">直播室封面</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="liveRoom.coverImage" placeholder="直播室封面"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">直播室密码</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="liveRoom.password" placeholder="直播室密码"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">人气</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="liveRoom.popCount" placeholder="人气"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">累计礼物数</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="liveRoom.giftCount" placeholder="累计礼物数"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">在线人数</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="liveRoom.onlineCount" placeholder="在线人数"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">累计直播时间 单位秒数</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="liveRoom.totalSeconds" placeholder="累计直播时间 单位秒数"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">直播状态 直播=1,未直播=0,禁播=-1</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="liveRoom.state" placeholder="直播状态 直播=1,未直播=0,禁播=-1"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">直播开始时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="liveRoom.startDate" placeholder="直播开始时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">直播结束时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="liveRoom.endDate" placeholder="直播结束时间"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>
<script src="${request.contextPath}/statics/js/modules/live/liveroom.js?_${.now?long}"></script>
</body>
</html>